package com.fox.stock.mapper;

import com.fox.stock.pojo.domain.PermissionDomain;
import com.fox.stock.pojo.entity.SysPermission;
import com.fox.stock.pojo.entity.SysUser;
import com.fox.stock.pojo.vo.req.UserSearchByConditionReqVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 20555
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2025-05-18 16:51:05
* @Entity com.fox.stock.pojo.entity.SysUser
*/
public interface SysUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser selectByUsernameSysUser(@Param("username")String username);

    List<SysPermission> getUserPermissions(@Param("id") long id);

    List<SysUser> getUserInfoByCondition(UserSearchByConditionReqVo condition);

    int deleteBatchByPrimaryKeys(@Param("list") List<Long> list);
}
